# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target 'EasyChat' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for EasyChat
  pod 'RealmSwift', '3.21.0'
  pod 'SwiftyJSON', '4.2.0'
  pod 'DifferenceKit', '1.1.3'
  pod 'FLAnimatedImage', '1.0.12'
  pod 'Nuke', '7.6.3'
  pod 'Nuke-FLAnimatedImage-Plugin'
  
  pod 'OAuthSwift', '1.2.2'
  pod '1PasswordExtension', '1.8.5'
  
  pod 'SwipeCellKit', '2.6.0'
  
  pod 'MBProgressHUD', '1.1.0'
  
  pod 'ReachabilitySwift', '4.2.1'
  
  pod 'Starscream', '3.0.6'
  pod 'semver', '1.1.0'
  
  pod 'RocketChatViewController', :git => 'https://github.com/RocketChat/RocketChatViewController'
  pod 'MobilePlayer', :git => 'https://github.com/RocketChat/RCiOSMobilePlayer'
  pod 'SimpleImageViewer', :git => 'https://github.com/cardoso/SimpleImageViewer.git'
  pod 'SwipeCellKit'
  
  # Text Processing
  pod 'RCMarkdownParser', :git => 'https://github.com/RocketChat/RCMarkdownParser.git'
  
  pod 'FLEX', '~> 2.0', :configurations => ['Debug']

  target 'EasyChatTests' do
    inherit! :search_paths
    
  end

  target 'EasyChatUITests' do
    # Pods for testing
  end

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
#        config.build_settings['SWIFT_VERSION'] = '4.1'
        # 在模拟器上排除 arm64
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
        # 在真实设备上保留 arm64
        config.build_settings['EXCLUDED_ARCHS[sdk=iphoneos*]'] = ''
      end
    end
  end
end
